package com.tbit.main.pojo;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @author LMY
 * @create 2022-03-30 11:11
 * 品牌对账数据日统计
 */
@Data
public class BrandDataDaySta {
    /**
     * 品牌id
     */
    private Integer brandId;
    /**
     * 区域id
     */
    private Integer accountId;
    /**
     * 区域名称
     */
    private String accountIdName;
    /**
     * 订单日期
     */
    private String orderDate;
    /**
     * 添加时间
     */
    private String addTime;
    /**
     * 0为金额，1为订单
     */
    private Integer type;
    /**
     * 骑行订单支付
     */
    private BigDecimal orderPayMoney;
    /**
     * 骑行订单支付
     */
    private String orderPayMoneyString;
    /**
     * 骑行订单未支付
     */
    private BigDecimal orderNoPayMoney;
    /**
     * 骑行订单未支付
     */
    private String orderNoPayMoneyString;
    /**
     * 骑行收入
     */
    private BigDecimal rideIncome;
    /**
     * 骑行收入
     */
    private String rideIncomeString;
    /**
     * 罚款收入
     */
    private BigDecimal fineIncome;
    /**
     * 罚款收入
     */
    private String fineIncomeString;
    /**
     * 骑行订单退款
     */
    private BigDecimal rideOrderRefund;
    /**
     * 骑行订单退款
     */
    private String rideOrderRefundString;
    /**
     * 骑行卡
     */
    private BigDecimal rideCard;
    /**
     * 骑行卡
     */
    private String rideCardString;
    /**
     * 骑行卡订单退款
     */
    private BigDecimal rideCardRefund;
    /**
     * 骑行卡订单退款
     */
    private String rideCardRefundString;
    /**
     * 免押卡
     */
    private BigDecimal depositCard;
    /**
     * 免押卡
     */
    private String depositCardString;
    /**
     * 免押卡订单退款
     */
    private BigDecimal depositCardRefund;
    /**
     * 免押卡订单退款
     */
    private String depositCardRefundString;
    /**
     * 会员卡
     */
    private BigDecimal vipCard;
    /**
     * 会员卡
     */
    private String vipCardString;
    /**
     * 会员卡订单退款
     */
    private BigDecimal vipCardRefund;
    /**
     * 会员卡订单退款
     */
    private String vipCardRefundString;
    /**
     * 优惠券
     */
    private BigDecimal couponOrder;
    /**
     * 优惠券
     */
    private Integer couponOrderCount;
    /**
     * 优惠券
     */
    private String couponOrderString;
    /**
     * 优惠券订单退款
     */
    private BigDecimal couponOrderRefund;
    /**
     * 优惠券订单退款
     */
    private String couponOrderRefundString;
    /**
     * 用户提交押金
     */
    private BigDecimal userCommitPledge;
    /**
     * 用户提交押金
     */
    private String userCommitPledgeString;
    /**
     * 用户退还押金
     */
    private BigDecimal userRefundPledge;
    /**
     * 用户退还押金
     */
    private String userRefundPledgeString;
    /**
     * 手动充值余额
     */
    private BigDecimal manualRechargeMoney;
    /**
     * 手动充值余额
     */
    private String manualRechargeMoneyString;
    /**
     * 手动扣款余额
     */
    private BigDecimal manualDeductMoney;
    /**
     * 手动扣款余额
     */
    private String manualDeductMoneyString;
    /**
     * 用户充值金额
     */
    private BigDecimal rechargeMoney;
    /**
     * 用户充值金额
     */
    private String rechargeMoneyString;
    /**
     * 充值订单退款
     */
    private BigDecimal rechargeRefund;
    /**
     * 充值订单退款
     */
    private String rechargeRefundString;
    /**
     * 总流水
     */
    private BigDecimal springWater;
    /**
     * 总余额
     */
    private String remaining;
    /**
     * 总押金
     */
    private String deposit;
    /**
     * 余额变更
     */
    private BigDecimal balanceChanges;
    /**
     * 押金变更
     */
    private BigDecimal depositChange;
    /**
     * 微信
     */
    private BigDecimal wx;
    /**
     * 支付宝
     */
    private BigDecimal zfb;
    /**
     * 总收入
     */
    private BigDecimal income;

    public void setOrderPayMoney(Long orderPayMoney) {
        if (orderPayMoney == null) {
            orderPayMoney = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(orderPayMoney);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.orderPayMoney = bigDecimal;
        this.orderPayMoneyString = "+" + bigDecimal;
    }

    public void setOrderNoPayMoney(Long orderNoPayMoney) {
        if (orderNoPayMoney == null) {
            orderNoPayMoney = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(orderNoPayMoney);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.orderNoPayMoney = bigDecimal;
        this.orderNoPayMoneyString = "+" + bigDecimal;
    }

    public void setRideIncome(Long rideIncome) {
        if (rideIncome == null) {
            rideIncome = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(rideIncome);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.rideIncome = bigDecimal;
        this.rideIncomeString = "+" + bigDecimal;
    }

    public void setFineIncome(Long fineIncome) {
        if (fineIncome == null) {
            fineIncome = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(fineIncome);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.fineIncome = bigDecimal;
        this.fineIncomeString = "+" + bigDecimal;
    }

    public void setRideOrderRefund(Long rideOrderRefund) {
        if (rideOrderRefund == null) {
            rideOrderRefund = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(rideOrderRefund);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.rideOrderRefund = bigDecimal;
        this.rideOrderRefundString = "-" + bigDecimal;
    }

    public void setRideCard(Long rideCard) {
        if (rideCard == null) {
            rideCard = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(rideCard);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.rideCard = bigDecimal;
        this.rideCardString = "+" + bigDecimal;
    }

    public void setRideCardRefund(Long rideCardRefund) {
        if (rideCardRefund == null) {
            rideCardRefund = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(rideCardRefund);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.rideCardRefund = bigDecimal;
        this.rideCardRefundString = "-" + bigDecimal;
    }

    public void setDepositCard(Long depositCard) {
        if (depositCard == null) {
            depositCard = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(depositCard);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.depositCard = bigDecimal;
        this.depositCardString = "+" + bigDecimal;
    }

    public void setDepositCardRefund(Long depositCardRefund) {
        if (depositCardRefund == null) {
            depositCardRefund = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(depositCardRefund);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.depositCardRefund = bigDecimal;
        this.depositCardRefundString = "-" + bigDecimal;
    }

    public void setVipCard(Long vipCard) {
        if (vipCard == null) {
            vipCard = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(vipCard);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.vipCard = bigDecimal;
        this.vipCardString = "+" + bigDecimal;
    }

    public void setVipCardRefund(Long vipCardRefund) {
        if (vipCardRefund == null) {
            vipCardRefund = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(vipCardRefund);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.vipCardRefund = bigDecimal;
        this.vipCardRefundString = "-" + bigDecimal;
    }

    public void setCouponOrder(Long couponOrder) {
        if (couponOrder == null) {
            couponOrder = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(couponOrder);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.couponOrder = bigDecimal;
        this.couponOrderString = "+" + bigDecimal;
    }

    public void setCouponOrderRefund(Long couponOrderRefund) {
        if (couponOrderRefund == null) {
            couponOrderRefund = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(couponOrderRefund);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.couponOrderRefund = bigDecimal;
        this.couponOrderRefundString = "-" + bigDecimal;
    }

    public void setUserCommitPledge(Long userCommitPledge) {
        if (userCommitPledge == null) {
            userCommitPledge = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(userCommitPledge);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.userCommitPledge = bigDecimal;
        this.userCommitPledgeString = "+" + bigDecimal;
    }

    public void setUserRefundPledge(Long userRefundPledge) {
        if (userRefundPledge == null) {
            userRefundPledge = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(userRefundPledge);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.userRefundPledge = bigDecimal;
        this.userRefundPledgeString = "-" + bigDecimal;
    }

    public void setManualRechargeMoney(Long manualRechargeMoney) {
        if (manualRechargeMoney == null) {
            manualRechargeMoney = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(manualRechargeMoney);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.manualRechargeMoney = bigDecimal;
        this.manualRechargeMoneyString = "+" + bigDecimal;
    }

    public void setManualDeductMoney(Long manualDeductMoney) {
        if (manualDeductMoney == null) {
            manualDeductMoney = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(manualDeductMoney);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.manualDeductMoney = bigDecimal;
        this.manualDeductMoneyString = "-" + bigDecimal;
    }

    public void setRechargeMoney(Long rechargeMoney) {
        if (rechargeMoney == null) {
            rechargeMoney = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(rechargeMoney);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.rechargeMoney = bigDecimal;
        this.rechargeMoneyString = "+" + bigDecimal;
    }

    public void setRechargeRefund(Long rechargeRefund) {
        if (rechargeRefund == null) {
            rechargeRefund = 0L;
        }
        BigDecimal bigDecimal = new BigDecimal(rechargeRefund);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.rechargeRefund = bigDecimal;
        this.rechargeRefundString = "-" + bigDecimal;
    }
}
